package com.enjoy.mjbaseframe.util;

import android.app.Application;

/**
 * 全局Context获取
 * Created by Administrator on 2018/2/1.
 */

public class AppUtil {

    private static final String TAG = "AppUtil";

    private static Application app;

    public AppUtil() {
    }

    public static Application getApp() {
        if (app==null){
            synchronized (AppUtil.class) {
                if (app==null) {
                    app = new Application();
                }
            }
        }
        return app;
    }

    public static void setApp(Application app) {
        AppUtil.app = app;
    }


}
